import request from "@/utils/request"

export const checkType = async(type) => request.get("/classtype?type=" + type)

export const addType = async(params) => request.post("/classtype", params)

export const delType = async(id) => request.delete("/classtype/" + id)

export const changeType = async(id, params) => request.patch("/classtype/" + id, params)

export const getType = async() => request.get("/classtype/")